package edu.spangler.dang.FriendViewer;

import java.io.Serializable;

/**
 * Class that represents a single friend entity.
 * @author Tuan Dang
 */
public class FriendObject implements Serializable {

	private static final long serialVersionUID = 8160248982759495394L;
	
	private String username;
	private double latitude;
	private double longitude;
	
	/**
	 * Constructor to create a FriendObject
	 * @param aUsername the username of the friend
	 * @param aLatitude the current latitude of the friend
	 * @param aLongitude the current longitude of the friend
	 */
	public FriendObject(String aUsername, double aLatitude, double aLongitude) {
		super();
		this.username = aUsername;
		this.latitude = aLatitude;
		this.longitude = aLongitude;
	}
	
	/**
	 * Default constructor
	 */
	public FriendObject() {
		this(null, 0, 0);
	}

	/**
	 * @return the username
	 */
	public String getUsername() {
		return username;
	}

	/**
	 * @param username the username to set
	 */
	public void setUsername(String username) {
		this.username = username;
	}

	/**
	 * @return the latitude
	 */
	public double getLatitude() {
		return latitude;
	}

	/**
	 * @param latitude the latitude to set
	 */
	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	/**
	 * @return the longitude
	 */
	public double getLongitude() {
		return longitude;
	}

	/**
	 * @param longitude the longitude to set
	 */
	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}
}
